﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace IceDog.WebApi.AnythingApi.Controllers
{
    /// <summary>
    /// 隐藏参数类型测试
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    public class DateTimeController : ControllerBase
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public ActionResult GetNow()
        {
            return Ok(new { data = DateTime.Now });
        }
        [HttpGet("GetYourTime")]
        public ActionResult GetYourTime(DateTime time)
        {
            return Ok(time);
        }
        [HttpGet("GetYourTime2")]
        public ActionResult GetYourTime2(DateTime time)
        {
            return Ok(new { time = time });
        }
    }
}